package com.ssy.lingxi.after.sale.repository;

import com.ssy.lingxi.after.sale.entity.ReturnGoodsDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * 退货
 * @author 伍将
 * @date 2020/9/4
 * @version 2.0.0
 */
public interface ReturnGoodsRepository extends JpaRepository<ReturnGoodsDO, Long>, JpaSpecificationExecutor<ReturnGoodsDO> {

    /**
     * 根据申请单号查询退货单
     * @author 伍将
     * @date 2021/1/27
     * @param applyNo: 申请单号
     * @return 退货单
     **/
    ReturnGoodsDO findByApplyNo(String applyNo);
}
